package com.sherlocky.resource.dao;

import com.rework.joss.persistence.convention.annotation.AbstractConventionDAO;
import com.rework.joss.persistence.convention.annotation.DAO;
import com.sherlocky.resource.dto.ResourceDTO;

@DAO(pojo=ResourceDTO.class, table="SH_RESOURCE")
public class ResourceDAO extends AbstractConventionDAO {
	
//	@Cacheable(value="resCache", key="'res-'+#id")
	public ResourceDTO findById(Long id) {
		return (ResourceDTO)super.findById(id);
	}
	
//	@CacheEvict(value= "resCache", key="'res-'+#dto.id")
	public void update(ResourceDTO dto) {
		super.update(dto);
	}
	
}
